Câu ví dụ
- thêm câu ví dụ: 1 2 3
- The numbers (in an arithmetic operation) are called operands.
Các con số (numbers) trong một arithmetic operation được gọi là operands (toán hạng). - SIGFPE: an erroneous arithmetic operation, such as a divide by zero or an operation resulting in overflow.
SIGFPE Một hoạt động số học không đúng, ví dụ như chia cho số 0 hoặc một hoạt động làm tràn luồng (overflow) - Note that all of these operations are very fast, and the only arithmetic operation that is used is addition modulo 232.
Chú ý rằng, tất cả các phép toán trên đều tất nhanh và chỉ có phép số học duy nhất được dùng là phép cộng modulo 232. - The Paste Special command can also be used to perform a simple arithmetic operation on the contents of the target cells.
Lệnh Paste Special cũng có thể được sử dụng để thực hiện thao tác số học đơn giản trên nội dung của các ô mục tiêu. - For example, if you try to apply an arithmetic operation to a string, Lua will try to convert that string to a number first, otherwise, the operation will not work.
Ví dụ, nếu bạn thử áp dụng một toán tử cho 1 chuỗi, Lua sẽ cố chuyểnchuỗi đó thành số trước, nếu không phép toán sẽ không thực hiện.